<?php defined('SYSPATH') or die('No direct access allowed.');

class Model_Page extends ORM {

    public function rules() {
        return array(
            'lang' => array(
                array('not_empty'),
                array('max_length', array(':value', 4)),
            ),
            'page' => array(
                array('not_empty'),
                array('max_length', array(':value', 32)),
            ),
            'template' => array(
                array('not_empty'),
                array('max_length', array(':value', 64)),
            ),
            'title' => array(
                array('max_length', array(':value', 128)),
            ),
            'content' => array(
                array('max_length', array(':value', 4096)),
            ),
        );
    }

}